package parsing;

import java.util.ArrayList;
import draft.Player;
import draft.Player.Position;

public class Main {
  public static void main(String[] args) {
    ArrayList<Player> names = new ArrayList<Player>(); //Array list to parse
    Parser test = new Parser(names); //Creates parser
    test.parse("http://api.fantasyfootballnerd.com/ffnRankingsXML.php?apiKey=2009111112602689&position=ALL&limit=1000&sos=0"); //parses url
    
    //displays list
    for(int i = 0; i < names.size(); i++){
    	Player iter = names.get(i);
    	System.out.println(iter.extendedString()
    	);
    	
    }
  }
}
